/**
 * @Title: YunxinSmsImpl
 * @Package cn.com.yiqi.wsc.service.SMS.impl
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-林威
 * @date 2017/3/13 11:32
 * @version V1.0
 */
package cn.com.yiqi.wsc.service.SMS.impl;

import cn.com.artemis.framework.service.message.enumeration.SMSOperator;
import cn.com.artemis.framework.service.message.factory.SMSFactory;
import cn.com.artemis.framework.service.message.service.yunxin.impl.YunxinSMSServiceImpl;
import cn.com.yiqi.wsc.service.SMS.SmsService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 会员系统组-林威
 * @ClassName: YunxinSmsImpl
 * Description: TODO
 * @date 2017/3/13 11:32
 */
@Service("xxtSmsService")
public class YunxinSmsImpl implements SmsService {


    @Autowired
    private YunxinSMSServiceImpl yunxinSmsService;

    @Override
    public Boolean validateCode(String mobile, String code) {
        return yunxinSmsService.validIdentifyCode(mobile, code);
    }

    @Override
    public void SendCode(String mobile) {
        yunxinSmsService.identifyCodeSend(mobile, null);
    }
}
